<?php

class Admin extends MY_Controller {
	public 
		$view = array(),
		$page,
		$per_page;
	
    public function __construct() {
    	exit('No authorize');
        parent::__construct();
        
        $this->view['list_sizes'] = array (5, 10, 15);
        $this->template = 'admin/layout';
        
        $this->page 		= $this->uri->segment(5) ? $this->uri->segment(5) :0;
        $pagesize 			= $this->input->get('pagesize');
        $this->per_page 	= $pagesize ? $pagesize : $this->config->item('per_page_admin');
        
        $this->load->library('pagination');
    }
    
    public function index() {
    	$view['template'] = 'admin/index.php';
    	$view['data'] = '';
    	$this->_render($view);
    }
}